Description:
CLU detects if a constant in a
switch
case is out of range of the
switch
expression or if it has an incompatible bit mask with the
switch
expression.
Incorrect:
void decode(int value) {
switch (value % 8) {
case 1:
...
case 2:
...
case 8:
...
}
switch (value & ~1) {
case 0:
...
case 1:
...
case 2:
...
}
}